import request from "@/utils/request";
/**
 * 获取项目管理列表
 */
export function GetHomeStatistic() {
  let url = ``;
  switch (localStorage.getItem("usertypeName")) {
    case "SysUser":
      url = `/api/v1/sysuser/home/home_statistic`;
      break;
    case "Corp":
      url = `/api/v1/corp/home/home_statistic`;
      break;
    case "Constructor":
      url = `/api/v1/constructor/home/home_statistic`;
      break;
    case "Commander":
      url = `/api/v1/commander/home/home_statistic`;
      break;
    case "Manager":
      url = `/api/v1/manager/home/home_statistic`;
      break;
    default:
      break;
  }
  return request({
    url: url,
    method: "get",
  });
}
